package com.yuntuzhilian.chapter3;

import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

/**
 * @author MrWang-shuizhishuiheshui
 * @description 字符形式写出
 */
public class TestFileWriter {
    public static void main(String[] args) {
        //声明
        Writer wr=null;

        try {
            //实例化
            wr=new FileWriter("test3.txt");
            wr.write("随便试试~~~~11");
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            if(wr!=null){
                try {
                    wr.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }


    }
}
